package com.xiaoleng.service;

import com.xiaoleng.entity.News;
import com.xiaoleng.entity.SmsInfo;
import com.xiaoleng.mappers.NewsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class SmsService {
    @Autowired
    private NewsMapper newsMapper;
    /**
     * 查询
     * @return
     */
    public String findOneSmsInfo() {
        Date date = new Date();
        System.out.println(date);
        SmsInfo oneSmsInfo = newsMapper.findOneSmsInfo(date);
        return oneSmsInfo.getContent();
    }
}
